#version 330 core

in vec2 TexCoords;

const vec3 color_black = vec3(0.0);

uniform float Time;
uniform sampler2D image;

out vec4 FragColor;

void main()
{
    vec3 color = vec3(0.0);
    float t = abs(sin(Time));
    color = texture(image, TexCoords).rgb;
	color = mix(color, color_black, t);
    FragColor = vec4(color, 1.0f);
}
